package com.migu.utils

/**
 * Created by maguoyun on 2017/3/24.
 */

import java.net.{ URLEncoder, URLDecoder }

object MD5{
  def hash(s:String)={
    val m = java.security.MessageDigest.getInstance("MD5")
    val b = s.getBytes("UTF-8")
    m.update(b,0,b.length)
    new java.math.BigInteger(1,m.digest()).toString(16)
  }

  def main(args: Array[String]) {

  }
}



